#pragma once
#include "cocos2d.h"
#include "HelpLayer.h"
#include "AboutLayer.h"

using namespace cocos2d;

class StartLayer : public Layer
{
	StartLayer();
	~StartLayer();

	MenuItemImage* startBtn;
	MenuItemImage* helpBtn;
	MenuItemImage* exitBtn;
	MenuItemImage* aboutBtn;

	Sprite* cups[5];
	Vec2 cupPositions[5];

	HelpLayer* _helpLayer = nullptr;
	AboutLayer* _aboutLayer = nullptr;
	
	void startCallBack();
	void helpCallBack();
	void aboutCallBack();
	void exitCallBack();
	void moveCup(int cupIndex);
	
public:
	static Scene* createScene();

	virtual void onEnter();
	virtual bool init();
	

	CREATE_FUNC(StartLayer);
};

